/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 17655
 * Date: 2025-07-15
 * Time: 22:11
 */
public class test3 {
    public int singleNumber(int[] nums) {
        int n = nums.length;
        int ret = nums[0];
        for(int i=1;i<n;i++){
            ret ^= nums[i];
        }
        return ret;
    }
}
